function every(array, fn){
    let result = false, a = -1
    const len = array.length
    while (++a < len) {
        result = fn(array[a], a, array)
        if (!result) {
            break
        }
    }
    return result
}

export default every